package com.base.operator;


//自增和自减，一元运算符
public class demo02 {
    public static void main(String[] args) {
        int a = 3;
        int b = a++;  //执行这段代码先给b赋值，然后再自增

        System.out.println(a);  //4


        int c = ++a;  //先自增，然后再给c赋值
        System.out.println(a);  //5
        System.out.println(b);  //3
        System.out.println(c);  //5


        //Math类,幂运算
        double pow = Math.pow(3, 2);
        System.out.println(pow);


    }


}
